package com.boomkeeper.excel.rw;

import java.io.File;
import java.io.IOException;

import org.apache.poi.EncryptedDocumentException;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.WorkbookFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ExcelFactory {
	
	private static final Logger LOGGER = LoggerFactory.getLogger(ExcelFactory.class);

	public static Reader getReader(File excelFile) {
//		try {
//			return new Reader(WorkbookFactory.create(excelFile));
//		} catch (EncryptedDocumentException | InvalidFormatException | IOException e) {
//			LOGGER.error("创建excel reader时发生异常", e);
//		}
		return null;
	}
	
	public static Reader getReader(String excelFile) {
		return getReader(new File(excelFile));
	}
}
